package com.ja.openchat.viewmodels;

import android.app.Application;

import androidx.annotation.NonNull;
import androidx.databinding.ObservableField;

import com.ja.openchat.ui.found.GoChatCirclePublishFragment;
import com.ja.openchat.ui.me.MyAlbumFragment;
import com.zy.openchat.core.model.user.UserInfo;

import me.goldze.mvvmhabit.base.BaseViewModel;
import me.goldze.mvvmhabit.binding.command.BindingCommand;


public class GoChatCircleViewModel extends BaseViewModel {
    public ObservableField<UserInfo> userAvatar = new ObservableField<>(UserInfo.getUserInfo());

    public GoChatCircleViewModel(@NonNull Application application) {
        super(application);
    }

    //点击事件
    public BindingCommand takePicOnClickCommand = new BindingCommand(() -> {
        startContainerActivity(GoChatCirclePublishFragment.class.getCanonicalName());
    });
    public BindingCommand headerOnClickCommand = new BindingCommand(() -> {
        startContainerActivity(MyAlbumFragment.class.getCanonicalName());
    });
}
